<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TkFlowConfigs
 *
 * @ORM\Table(name="tk_flow_configs", indexes={@ORM\Index(name="vccId", columns={"vcc_id"})})
 * @ORM\Entity
 */
class TkFlowConfigs
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="vcc_id", type="integer", nullable=false)
     */
    private $vccId;

    /**
     * @var bool
     *
     * @ORM\Column(name="receive_type", type="boolean", nullable=false, options={"default"="1","comment"="工单领取方式(1随机2指定)"})
     */
    private $receiveType = '1';

    /**
     * @var int
     *
     * @ORM\Column(name="max_tickets", type="integer", nullable=false, options={"comment"="领取的最多未处理工单数，0为不限"})
     */
    private $maxTickets = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="limit_tickets", type="integer", nullable=false, options={"default"="1","comment"="随机领取最大值，默认为1"})
     */
    private $limitTickets = '1';

    /**
     * @var string
     *
     * @ORM\Column(name="api_url", type="string", length=255, nullable=false, options={"comment"="第三方API接口地址"})
     */
    private $apiUrl;

    /**
     * @var bool
     *
     * @ORM\Column(name="api_request_method", type="boolean", nullable=false, options={"default"="1","comment"="请求方法(1get2post)"})
     */
    private $apiRequestMethod = '1';

    /**
     * @var string
     *
     * @ORM\Column(name="api_response_fields", type="string", length=255, nullable=false, options={"comment"="响应结果字段"})
     */
    private $apiResponseFields;

    /**
     * @var int
     *
     * @ORM\Column(name="if_repeat_ticket", type="smallint", nullable=false, options={"comment"="重复工单限制"})
     */
    private $ifRepeatTicket = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="repeat_time", type="integer", nullable=false, options={"comment"="重复时间（单位小时）"})
     */
    private $repeatTime;

    /**
     * @var int
     *
     * @ORM\Column(name="if_name_required", type="integer", nullable=false, options={"comment"="客户名称是否必填（0必填 1选填）"})
     */
    private $ifNameRequired = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="if_phone_required", type="integer", nullable=false, options={"comment"="客户电话是否必填（0必填 1选填）"})
     */
    private $ifPhoneRequired = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="flow_del", type="string", length=255, nullable=false, options={"comment"="被删除的工单类型(格式1,2,3,4)"})
     */
    private $flowDel = '';

    /**
     * @var int
     *
     * @ORM\Column(name="if_export_log", type="integer", nullable=false, options={"comment"="是否导出工单日志（1是0否）"})
     */
    private $ifExportLog = '0';

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getVccId(): ?int
    {
        return $this->vccId;
    }

    public function setVccId(int $vccId): self
    {
        $this->vccId = $vccId;

        return $this;
    }

    public function getReceiveType(): ?bool
    {
        return $this->receiveType;
    }

    public function setReceiveType(bool $receiveType): self
    {
        $this->receiveType = $receiveType;

        return $this;
    }

    public function getMaxTickets(): ?int
    {
        return $this->maxTickets;
    }

    public function setMaxTickets(int $maxTickets): self
    {
        $this->maxTickets = $maxTickets;

        return $this;
    }

    public function getLimitTickets(): ?int
    {
        return $this->limitTickets;
    }

    public function setLimitTickets(int $limitTickets): self
    {
        $this->limitTickets = $limitTickets;

        return $this;
    }

    public function getApiUrl(): ?string
    {
        return $this->apiUrl;
    }

    public function setApiUrl(string $apiUrl): self
    {
        $this->apiUrl = $apiUrl;

        return $this;
    }

    public function getApiRequestMethod(): ?bool
    {
        return $this->apiRequestMethod;
    }

    public function setApiRequestMethod(bool $apiRequestMethod): self
    {
        $this->apiRequestMethod = $apiRequestMethod;

        return $this;
    }

    public function getApiResponseFields(): ?string
    {
        return $this->apiResponseFields;
    }

    public function setApiResponseFields(string $apiResponseFields): self
    {
        $this->apiResponseFields = $apiResponseFields;

        return $this;
    }

    public function getIfRepeatTicket(): ?int
    {
        return $this->ifRepeatTicket;
    }

    public function setIfRepeatTicket(int $ifRepeatTicket): self
    {
        $this->ifRepeatTicket = $ifRepeatTicket;

        return $this;
    }

    public function getRepeatTime(): ?int
    {
        return $this->repeatTime;
    }

    public function setRepeatTime(int $repeatTime): self
    {
        $this->repeatTime = $repeatTime;

        return $this;
    }

    public function getIfNameRequired(): ?int
    {
        return $this->ifNameRequired;
    }

    public function setIfNameRequired(int $ifNameRequired): self
    {
        $this->ifNameRequired = $ifNameRequired;

        return $this;
    }

    public function getIfPhoneRequired(): ?int
    {
        return $this->ifPhoneRequired;
    }

    public function setIfPhoneRequired(int $ifPhoneRequired): self
    {
        $this->ifPhoneRequired = $ifPhoneRequired;

        return $this;
    }

    public function getFlowDel(): ?string
    {
        return $this->flowDel;
    }

    public function setFlowDel(string $flowDel): self
    {
        $this->flowDel = $flowDel;

        return $this;
    }

    public function getIfExportLog(): ?int
    {
        return $this->ifExportLog;
    }

    public function setIfExportLog(int $ifExportLog): self
    {
        $this->ifExportLog = $ifExportLog;

        return $this;
    }


}
